package com.ld.hpfs.dao;

import java.util.ArrayList;
import java.util.HashMap;

import org.springframework.stereotype.Repository;

@Repository
public interface DefineReportMapper {
	//获取报告列表
	ArrayList<HashMap<String, Object>> getReportList(HashMap<String, Object> param);
	//获取报告数量
	int getReportListCount(HashMap<String, Object> param);
	//获得表明管理表中已添加表名
	ArrayList<HashMap<String,Object>> getReportTableCN(String cpn_id);
	ArrayList<HashMap<String,Object>> getReportTableEN(String cpn_id);
	//获取选取表的所有字段
	ArrayList<HashMap<String, Object>> getTableField(HashMap<String, Object> param);
	//获取用户名
	ArrayList<HashMap<String, Object>> getUser();
	//获取用户组
	ArrayList<HashMap<String, Object>> getUserGroup(HashMap<String, Object> param);
	//删除报告
	int ReportDelete(HashMap<String, Object> param);
	//验证编辑用户
	ArrayList<HashMap<String, Object>> ReportEdit(HashMap<String, Object> param);
	//获取用户组下所属用户
	ArrayList<HashMap<String, Object>> getUserIdOfGroup(
			HashMap<String, Object> param);
	//保存报告
	int ReportSave(HashMap<String, Object> param);
	//获取报告列
	ArrayList<HashMap<String, Object>> getReportColume(HashMap<String, Object> param);
	//获取报告数据
	ArrayList<HashMap<String, Object>> getreportstore(HashMap<String, Object> param);
	ArrayList<HashMap<String, Object>> getReportName();
	int ReportEditEdit(HashMap<String, Object> param);
	ArrayList<HashMap<String, Object>> CheckReportUser(HashMap<String, Object> param);
	
	/**
	 * 获取履历添加需要的数据
	 * @param report_hid 获取报告数据的参数
	 * @return
	 */
	ArrayList<HashMap<String, Object>> getDefineReportForHistory(String report_id);
	
	/**
	 * 
	 * @param history
	 */
	void AddDefineReportHistory(HashMap<String, Object> history);
	ArrayList<HashMap<String, Object>> getReportNameForCom();
	// 获取当前报告总条数
	int getTotalCount(HashMap<String, Object> paramfordata);
	// 获取字段数据类型
	HashMap<String, Object> getFieldProperty(HashMap<String, Object> param);
}
